/* 通用页面样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 密码一致性提示 */
#passwordMatchMessage {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #f44336;
}

/* 表单提交按钮样式 */
.save-button {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.save-button:hover {
    background-color: #45a049;
}

/* 取消按钮 */
.cancel-button {
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-size: 1rem;
    color: #007bff;
    border-radius: 5px;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #007bff;
}

.cancel-button:hover {
    background-color: #007bff;
    color: white;
}

/* 使表单内容居中对齐 */
.form-actions {
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}
